Loading
Scriptbox
 VBScript Links 
 About VBscript 
 JavaScript Links 
 About JavaScript 
 Powershell Links 
 PSCRIPT the Script Launcher 
 PowerShell Shortcut Keys 
 About Powershell 
     VBScript
    JavaScript
    Powershell
Disclaimer
Contact
Latest 10 Scripts
Script search
  :: { Category } :: 0-9ABCDEFGHIJKLMNOPQRSTUVWXYZ
         

Search Options:  Make  Screenshot  via  Excel  Makro  

 Content of Make Screenshot via Excel Makro.vbs
MD5 Hash: C8E5B6F023B7444FEC3778DDDCE9AB0A
'On Error Resume Next

Dim ExcelApp : Set ExcelApp = CreateObject("Excel.Application")
ExcelApp.Visible = False
Dim ExcelAppWBk : Set ExcelAppWBk = ExcelApp.Workbooks.Add
Dim ExcelAppMod : Set ExcelAppMod = ExcelAppWBk.VBProject.VBComponents.Add(1)
Dim oWshShell : Set oWshShell = CreateObject("WScript.Shell")

ExcelAppMod.CodeModule.AddFromString "Private Declare Sub keybd_event Lib " & Chr(34) & "User32" & Chr(34) & " (ByVal bVk As Byte, ByVal bScan As Byte, ByVal dwFlags As Long, ByVal dwExtraInfo As Long)" & _
VBCrLf & "Public Function GetScreenshot" &_
VBCrLf & "keybd_event " & Chr(38) & "H2C, 1, 0, 0" &_
VBCrLf & "DoEvents" &_
VBCrLf & "End Function"

ExcelApp.Run "GetScreenshot()"
ExcelAppWBk.Close False
ExcelApp.Quit

oWshShell.Run "mspaint",1,False
wscript.sleep 1000
oWshShell.Sendkeys "^(v)"

   © 2008 - 2013 Boris Toll      :: Scripts available: 6.481 ::      :: scriptbox.toll.at ::      :: powered by www.toll.at ::
  Google Entries:n/a
  Yahoo Backlinks:n/a
  Live Backlinks:n/a
  del.icio.us Bookmarks:n/a
  Technorati Links:n/a